package io.renren.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 *
 * @author sean
 * @since 2020-03-18
 *
 * 平安房产购买时间类型
 */
public enum PaHousingPeriodType implements IDictEnum<String> {

    /**
     * 小于6个月
     */
    LESS_THAN_6_MONTH("0", "小于6个月"),

    /**
     * 大于等于6个月
     */
    MORE_THAN_6_MONTH("1", "大于等于6个月");

    private String code;

    private String description;

    PaHousingPeriodType(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getType() {
        return "PA_HOUSING_PERIOD";
    }

    @Override
    public String getDescription() {
        return this.description;
    }

    @Override
    @JsonValue
    public String getValue() {
        return this.code;
    }
}
